/**************************************************************************//**
 * @file     system_tc32l010.h
 * @brief    CMSIS Device System Header File for
 *           tc32l010 Device
 * @version  V1.0.0
 * @date     01. July 2021
 ******************************************************************************/
/*
 * Copyright (c) 2023 CHIPAT Limited. All rights reserved.
 */

#ifndef SYSTEM_XS32L010_H
#define SYSTEM_XS32L010_H

#ifdef __cplusplus
extern "C" {
#endif


/* define compiler specific symbols */
#if defined ( __CC_ARM   )
  #define STATIC_CODE_SECTION      __attribute__((section ("RAMCODE")))
  
#elif defined ( __ICCARM__ )
  #define STATIC_CODE_SECTION    __ramfunc

#endif

extern uint32_t SystemCoreClock;          /*!< System Clock Frequency (Core Clock) */


/**
  \brief Setup the microcontroller system.

   Initialize the System and update the SystemCoreClock variable.
 */
extern void SystemInit (void);


/**
  \brief  Update SystemCoreClock variable.

   Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
 */
extern void SystemCoreClockUpdate (void);

#ifdef __cplusplus
}
#endif

#endif /* SYSTEM_XS32L010_H */
